package yang.itcode.service;

import cn.hutool.json.JSONObject;
import com.github.pagehelper.PageInfo;
import yang.itcode.model.pojo.Category;

import java.util.List;

public interface CategoryService {
    boolean addCategory(JSONObject obj);

    JSONObject getCategoryTree();

    PageInfo<JSONObject> getCategoryList(Integer pageNum, Integer pageSize, JSONObject condition);

    boolean updateCategory(JSONObject obj);

    boolean deleteCategory(Integer id);

    List<Category> getCategoryWithDescendants(Integer id);
}
